// Created by 11372 on 2021/12/13 10:56
#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

/**
 * 执行用时：0 ms, 在所有 C++ 提交中击败了100.00%的用户
 * 内存消耗：10.1 MB, 在所有 C++ 提交中击败了42.80%的用户
 */
class Solution {
public:
    bool isBoomerang(vector<vector<int>>& points) {
        vector<int> a = points[0], b = points[1], c = points[2];
        return cross(b[0] - a[0], b[1] - a[1], c[0] - a[0], c[1] - a[1]);
    }

    int cross(int x1, int y1, int x2, int y2) {
        return x1 * y2 - x2 * y1;
    }
};

int main() {

    vector<vector<int>> points = {
            {1, 1},
            {2, 2},
            {3, 3}
    };
    cout << Solution().isBoomerang(points) << endl;  // false

    return 0;
}
